package com.p2p.front.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.p2p.base.model.P2PRecharge;
import com.p2p.base.page.PageVo;
import com.p2p.front.dal.dao.RechargeDao;
import com.p2p.front.service.RechargeService;

/**
 * leiwen@yiqihao.com
 */
@Service
public class RechargeServiceImpl implements RechargeService {

	@Autowired
	private RechargeDao rechargeDao;
	
	public PageVo list(PageVo form) {
		List<Map<String, Object>> list = rechargeDao.listPage(form);
		form.setList(list);
		return form;
	}

	@Override
	public void saveP2PRecharge(P2PRecharge p2pRecharge) {
		rechargeDao.add(p2pRecharge);
		
	}

	@Override
	public int updateForOverTime() {
		return rechargeDao.updateForOverTime();
	}

}
